(send_process): Use encode_coding_object instead of
authorKenichi Handa <handa@m17n.org>
Thu, 27 Aug 2009 11:12:54 +0000 (11:12 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 27 Aug 2009 11:12:54 +0000 (11:12 +0000)
encode_coding_string to perform eol-conversion even if the string
is unibyte.

src/process.c

index 86cc5b0c4b473d61b0fc67989f41899c67625215..77ca2551e46b6259b299be603ac0775c55943424 100644 (file)
@@ -5721,7 +5721,8 @@ send_process (proc, buf, len, object)
        }
       else if (STRINGP (object))
        {
-         encode_coding_string (coding, object, 1);
+         encode_coding_object (coding, object, 0, 0, SCHARS (object),
+                               SBYTES (object), Qt);
        }
       else
        {